package oo5;

import java.util.Scanner;

import oo4.Pet;

public class ZooTest {

	public static void main(String[] args) {
		Zoo z = new Zoo("合肥野生动物园");
		Scanner in = new Scanner(System.in);
		System.out.println("输入存款：");
		int m = in.nextInt();
		Pet p = z.sell(m);
		if (p == null) {
			System.out.println("啥都买不了");
		} else {
			System.out.println("买到的是：");
			System.out.println(p);
		}
	}

}
